package edu.ynmd.class2.database.dao;

import edu.ynmd.class2.database.model.ArsfcGeoProvinceEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface ProvinceDao extends JpaRepository<ArsfcGeoProvinceEntity,Integer> {
        @Query("select c.name from ArsfcGeoProvinceEntity c where c.adcode=:sf")
        String getProvinceEntityNameByZsCode(@Param("sf")String sf);
    }

